package bp.demo;

import bp.da.DataType;
import bp.tools.HttpClientUtil;
import bp.tools.PubGlo;
import com.alibaba.fastjson.JSONObject;
import org.apache.poi.xwpf.usermodel.XWPFDocument;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Pattern;

public class DemoMain {
    public static void main(String[] args) throws Exception {
//      String ntag="Bill_VSTO1CongBiao.1.BeiZhu";
//      String[] tagArr=ntag.split("\\.");
//        System.out.println(tagArr.length);
//        System.out.println(Arrays.toString(tagArr));
        test();
    }

    public static void test() throws Exception {
        JSONObject jsonObject = JSONObject.parseObject("{}");
        jsonObject.put("stationCode","092291001");
        jsonObject.put("startTime","2025-09-01 00:00:00");
        jsonObject.put("endTime","2025-09-30 23:59:59");
        String url="http://lsp.teeechina.com:19112//cz_station/getAbnormalRecord";
//        String result = HttpClientUtil.doPostJson(url, jsonObject.toString());
        String result=PubGlo.HttpPostConnect(url, jsonObject.toString(),"POST", true, null);
        System.out.println(result);

    }


}
